package com.drivemanage.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.drivemanage.entry.DriveResult;
import com.drivemanage.service.OrderInfoService;

/**
 * @version 创建时间：2017-5-19 上午11:07:05
 *          程序的简单说明
 */
@Controller
@RequestMapping("/orderInfo")
public class OrderInfoController {

    @Resource
    private OrderInfoService orderInfo;

    @ResponseBody
    @RequestMapping("/newOrder.do")
    public DriveResult newOrder(String carid, String userid, String selectuser, String selectname, String linkphone,
            String address, String starttime, String endtime) {
        return orderInfo.newOrder(carid, userid, selectuser, selectname, linkphone, address, starttime, endtime);
    }

    @ResponseBody
    @RequestMapping("/getMyOrder.do")
    public DriveResult getMyOrder(String checkTag) {
        return orderInfo.getMyOrder(checkTag);
    }
    
    @ResponseBody
    @RequestMapping("/modifyOrderStatus.do")
    public DriveResult modifyOrderStatus(int orderstatus,String difdo,String orderid){
    	return orderInfo.modifyOrderStatus(orderstatus,difdo,orderid);
    }
}
